package com.gxitsky.classload.demo1;

import org.reflections.vfs.Vfs;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gxing
 * @desc 虚拟目录
 * @date 2021/12/28
 */
public class ContainerDir implements Vfs.Dir {

    List<Vfs.File> list = new ArrayList<>();

    public ContainerDir(List<Vfs.File> list) {
        this.list = list;
    }

    @Override
    public String getPath() {
        return null;
    }

    @Override
    public Iterable<Vfs.File> getFiles() {
        return list;
    }

    @Override
    public void close() {

    }
}
